import request from "../common/axios";

/**
 * 启动服务
 * @param data
 * @returns {AxiosPromise}
 */
export function startServer(data) {
    return request({
        url: '/f/startServe',
        method: 'get',
        params: data,
        headers: {'Content-Type': 'application/json'}
    });
}
/**
 * 启动服务
 * @param data
 * @returns {AxiosPromise}
 */
export function stopServer(data) {
    return request({
        url: '/f/stopServe',
        method: 'get',
        params: data,
        headers: {'Content-Type': 'application/json'}
    });
}


/**
 * 获取服务状态
 * @param data
 * @returns {AxiosPromise}
 */
export function getServeStat(data) {
    return request({
        url: '/f/getServeStat',
        method: 'get',
        params: data,
        headers: {'Content-Type': 'application/json'}
    });
}